-----------------------------------------------
--  地牢星级
-- @param  dungeonId    地牢id
-- @param  layer        层 
return function(dungeonId, layer)   
    local stars = DungeonAreaM.query(dungeonId, "star");
    for star = 1, #stars do
        if  stars[star] > layer then
            return star - 1;
        end
    end
    
    return #stars;
end
